import request from '@/utils/request'
export default {
    getFileUrl(id) {
        return request({
            url: '/PFile',
            method: 'get',
            params: id
        })
    },
    deleteFile(url){
        return request({
            url: '/PFile/delete',
            method: 'delete',
            data: url
        })
    },
    downLoadFile(id){
        return request({
            url: `/PFile/${id}`,
            method: 'get',
        })
    },
    upLoadFile(file){
        return request({
            url: `/PFile/up`,
            method: 'post',
            data: file
        })
    }
}
